
package gov.chinatax.ctcps.generator.form;

import java.text.SimpleDateFormat;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for xtglYwzt.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="xtglYwztForm"
 */
public class XtglYwztForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _ywztbh = null;
   private java.lang.String _ywmc = null;
   private java.lang.String _ywbz = null;
   private java.lang.String _czkssj = null;
   private java.lang.String _czjssj = null;
   private java.lang.String _ywztDm = null;
   private java.math.BigDecimal _ywjd = null;
   private java.lang.String _dwbh = null;
   private java.lang.String _czyxm = null;
   private java.lang.String _bz = null;
   private java.lang.String _zt2 = null;
   private java.lang.String _zt3 = null;

   /**
    * Standard constructor.
    */
   public XtglYwztForm() {
   }
   /**
    * Returns the czyxm
    *
    * @return the czyxm
    */
   public java.lang.String getCzyxm() {
      return _czyxm;
   }

   /**
    * Sets the czyxm
    *
    * @param czyxm the new czyxm value
    */
   public void setCzyxm(java.lang.String czyxm) {
      _czyxm = czyxm;
   }
   /**
    * Returns the ywbz
    *
    * @return the ywbz
    */
   public java.lang.String getYwbz() {
      return _ywbz;
   }

   /**
    * Sets the ywztbh
    *
    * @param ywztbh the new ywztbh value
    */
   public void setYwbz(java.lang.String ywbz) {
      _ywbz = ywbz;
   }
   /**
    * Returns the ywztbh
    *
    * @return the ywztbh
    */
   public java.lang.String getYwztbh() {
      return _ywztbh;
   }

   /**
    * Sets the ywztbh
    *
    * @param ywztbh the new ywztbh value
    */
   public void setYwztbh(java.lang.String ywztbh) {
      _ywztbh = ywztbh;
   }
   /**
    * Returns the ywmc
    *
    * @return the ywmc
    */
   public java.lang.String getYwmc() {
      return _ywmc;
   }

   /**
    * Sets the ywmc
    *
    * @param ywmc the new ywmc value
    */
   public void setYwmc(java.lang.String ywmc) {
      _ywmc = ywmc;
   }
   /**
    * Returns the czkssj
    *
    * @return the czkssj
    */
   public java.lang.String getCzkssj() {
      return _czkssj;
   }
   /**
    * Returns the czkssj
    *
    * @return the czkssj
    */
   public java.lang.String getCzjssj() {
      return _czjssj;
   }

   /**
    * Sets the czkssj
    *
    * @param czkssj the new czkssj value
    */
   public void setCzkssj(java.lang.String czkssj) {
      _czkssj = czkssj;
   }
   /**
    * Sets the czjssj
    *
    * @param czjssj the new czjssj value
    */
   public void setCzjssj(java.lang.String czjssj) {
      _czjssj = czjssj;
   }
   /**
    * Returns the ywztDm
    *
    * @return the ywztDm
    */
   public java.lang.String getYwztDm() {
      return _ywztDm;
   }

   /**
    * Sets the ywztDm
    *
    * @param ywztDm the new ywztDm value
    */
   public void setYwztDm(java.lang.String ywztDm) {
      _ywztDm = ywztDm;
   }
   /**
    * Returns the ywjd
    *
    * @return the ywjd
    */
   public java.math.BigDecimal getYwjd() {
      return _ywjd;
   }

   /**
    * Sets the ywjd
    *
    * @param ywjd the new ywjd value
    */
   public void setYwjd(java.math.BigDecimal ywjd) {
      _ywjd = ywjd;
   }
   /**
    * Returns the dwbh
    *
    * @return the dwbh
    */
   public java.lang.String getDwbh() {
      return _dwbh;
   }

   /**
    * Sets the dwbh
    *
    * @param dwbh the new dwbh value
    */
   public void setDwbh(java.lang.String dwbh) {
      _dwbh = dwbh;
   }
   /**
    * Returns the bz
    *
    * @return the bz
    */
   public java.lang.String getBz() {
      return _bz;
   }

   /**
    * Sets the bz
    *
    * @param bz the new bz value
    */
   public void setBz(java.lang.String bz) {
      _bz = bz;
   }
   /**
    * Returns the zt2
    *
    * @return the zt2
    */
   public java.lang.String getZt2() {
      return _zt2;
   }

   /**
    * Sets the zt2
    *
    * @param zt2 the new zt2 value
    */
   public void setZt2(java.lang.String zt2) {
      _zt2 = zt2;
   }
   /**
    * Returns the zt3
    *
    * @return the zt3
    */
   public java.lang.String getZt3() {
      return _zt3;
   }

   /**
    * Sets the zt3
    *
    * @param zt3 the new zt3 value
    */
   public void setZt3(java.lang.String zt3) {
      _zt3 = zt3;
   }


   /**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getYwztbh() == null) {
         errors.add("ywztbh", new ActionError("error.ywztbh.required"));
      }
      // TODO test format/data
      return errors;
   }
}
